#include "ExtentRectangle.h"

using namespace Core;


Core::ExtentRectangle::ExtentRectangle(double west, double south, double east, double north)
{
	_west = west;
	_south = south;
	_east = east;
	_north = north;
}

Core::ExtentRectangle::ExtentRectangle()
{
	_west = 0.0;
	_south = 0.0;
	_east = 0.0;
	_north = 0.0;
}

ExtentRectangle& Core::ExtentRectangle::fromDegree(double west, double south, double east, double north, ExtentRectangle& result)
{
	west = AriesMath::toRadians(west);
	south = AriesMath::toRadians(south);
	east = AriesMath::toRadians(east);
	north = AriesMath::toRadians(north);

	result.West(west);
	result.South(south);
	result.East(east);
	result.North(north);

	return result;
}

//ExtentRectangle& Core::ExtentRectangle::fromCartographicArray(std::vector<double>& cartographics, ExtentRectangle& result)
//{
//
//}
